all: g_srv clean
g_srv: srv_main.o writen.o readn.o usrlib.o
	g++ -o g_srv srv_main.o writen.o readn.o usrlib.o -lmysqlclient
srv_main.o: srv_main.cpp
writen.o: writen.cpp
readn.o: readn.cpp
usrlib.o: usrlib.cpp
	g++ -c usrlib.cpp -I/usr/include/mysql 
clean: 
	rm *.o
